const express = require("express");
const reportController = require("../controller/reportController");
const requireAuth = require("../middleware/requireAuth");
const router = express.Router({ mergeParams: true });

router.route("/").post(requireAuth, reportController.createReport);
// .get(requireAuth, testController.getAllTest);

router
  .route("/:id")
  .delete(requireAuth, reportController.deleteReport)
  .patch(requireAuth, reportController.updateReport)
  .get(requireAuth, reportController.getReportByUserId); //用户获取自己的卷子

module.exports = router;
